package com.justgame.project.service.api.entity;

import com.justgame.project.cloud.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.URL;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Null;

@EqualsAndHashCode(callSuper = true)
@Data
public class ArtPageCategory extends BaseEntity {

    @NotBlank
    @Length(max = 30)
    private String name;

    @Length(max = 100)
    private String otherName;

    @Length(max = 255)
    private String description;

    @URL
    @Length(max = 255)
    private String imageUrl;

    @Null
    private Integer status;

    @Length(max = 50)
    private String remark;
}
